﻿
namespace NoNameGoServer.Client.Commands {
    public class DeclineCommand : Command {
        private readonly string _opponentName;

        public DeclineCommand(string opponentName) {
            _opponentName = opponentName;
        }

        public override void Execute(NNGSClient nngsClient) {
            string cmd = string.Format("decline {0}\n", _opponentName);
            nngsClient.SendAsync(this, cmd, null);
        }
    }
}
